What is the least number of moves needed to solve the 4-peg Towers of Hanoi problem?
نویسنده
چکیده
We prove that the solutions to the k-peg Tower of Hanoi problem given by Frame and Stewart are minimal. This paper solves the problem of finding the least number of moves needed to transfer a Tower of Hanoi of n disks, from an initial peg to another one of the k− 1 other pegs. This problem generalizes a well known puzzle proposed and solved in [5] for the case of three pegs. The generalization to the case of k pegs was proposed in [6], and can be phrased as follows: “Given k pegs and n disks initially stacked on one peg in decreasing order of size (i.e. no larger disk can be on top of a smaller one), how many moves are needed to transfer the stack of disks from the initial peg to another peg, assuming that you can move only one disk at a time and it is not allowed to place a larger disk on top of a smaller disk?” Two solutions to this problem were proposed in [2] and [7] using methods that have been shown to be equivalent in [4]. However, as already observed in [1], both presumed solutions make use of a special assumption, which up to date is still unproven, and restricts their proofs of optimality only to algorithms of a certain scheme. These two models of solution can be however regarded as empirically optimal, as verified for up to 20 disks in [3]. In this paper we prove Theorem 1 The solutions to the k-peg Tower of Hanoi problem given in [2] and [7] are minimal. We introduce now some preliminary terminology and notation. We label n disks with the number 1 . . . n, with the convention that the disk j is larger than the disk i if and only if j > i. We use the symbol ∞ to indicate a free peg. The triple (j,i,t), with 1 ≤ j < i ≤ ∞ and j < t ≤ ∞, denotes that the disk j moves from being on the disk i to be placed on the disk t. We say that j ≤ n is freed on a peg, when it moves for the first time (i.e. when we find for the first time the move (j, j+1,∞) or, in the case j = n the move (j,∞,∞)). ∗[email protected]
منابع مشابه
On the Frame--Stewart Conjecture about the Towers of Hanoi
The multipeg Towers of Hanoi problem consists of k pegs mounted on a board together with n disks of different sizes. Initially these disks are placed on one peg in the order of their size, with the largest at the bottom. The rules of the problem allow disks to be moved one at a time from one peg to another as long as a disk is never placed on top of a smaller disk. The goal of the problem is to...
متن کاملTwin Towers of Hanoi
In the Twin Towers of Hanoi version of the well known Towers of Hanoi Problem there are two coupled sets of pegs. In each move, one chooses a pair of pegs in one of the sets and performs the only possible legal transfer of a disk between the chosen pegs (the smallest disk from one of the pegs is moved to the other peg), but also, simultaneously, between the corresponding pair of pegs in the cou...
متن کاملOn the Towers of Hanoi problem
We analyze a solution to a variant of the Towers of Hanoi problem, in which multiple spare pegs are used to move the disks from the source to the destination peg. We also discuss the interesting relation between the number of disks and the total number of disk moves when the number of spare pegs is a function of number of disks.
متن کاملSolutions to the generalized Towers of Hanoi problem
The purpose of this paper is to prove the Frame-Stewart algorithm for the generalized Towers of Hanoi problem as well as finding the number of moves required to solve the problem and studying the multitude of optimal solutions. The main idea is to study how to most effectively move away all but the last disc and use the fact that the total number of moves required to solve the problem is twice ...
متن کاملRecent Progress in Heuristic Search: A Case Study of the Four-Peg Towers of Hanoi Problem
We integrate a number of new and recent advances in heuristic search, and apply them to the fourpeg Towers of Hanoi problem. These include frontier search, disk-based search, parallel processing, multiple, compressed, disjoint, and additive pattern database heuristics, and breadth-first heuristic search. New ideas include pattern database heuristics based on multiple goal states, a method to re...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- CoRR
دوره abs/1203.3280 شماره
صفحات -
تاریخ انتشار 2012